package com.social.pojo;

import com.mzt.logapi.beans.LogRecord;
import lombok.Data;

/**
 * @author zero
 * @version 1.0
 * @project demo
 * @description 日志分析
 * @date 2022/11/25 15:44:07
 */
@Data
public class LogRecordPO {
    private String type;
    private String operator;
    private String action;
    public LogRecordPO(){};
    public static LogRecordPO toPo(LogRecord logRecord){
        LogRecordPO po = new LogRecordPO();
        po.type = logRecord.getType();
        po.operator = logRecord.getOperator();
        po.action = logRecord.getAction();
        return po;
    }
}
